package com.hong.demo.other.fsm.impl;

import com.hong.demo.other.fsm.inf.IFSMTransition;

public class BuyerPayTransition implements IFSMTransition<OrderFSMContext> {

    @Override
    public OrderState onTransition(OrderFSMContext orderFSMContext) {
        System.out.println("支付成功");

        orderFSMContext.setTargetState(OrderState.PAYED);
        return OrderState.PAYED;
    }
}
